<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
    <div class="x_panel">
      <div class="x_title">
      	
        <h2>
APP 信息管理维护 ${devUser.devname} <i class="fa fa-user"></i> 
         <small>您可以通过搜索或者其他的筛选项对APP的信息进行修改、删除等管理操作。^_^</small></h2>
        <div class="clearfix"></div>
      </div>
      <div class="x_content">
        <br />
        <form action="${pageContext.request.contextPath }/devApp/appInfoAdd" method="post"
        id="demo-form2" data-parsley-validate class="form-horizontal form-label-left" enctype="multipart/form-data">
          <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwareName">软件名称<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input type="text" value="${appInfo.softwarename }" id="softwarename" name="softwarename"  class="form-control col-md-7 col-xs-12">
            </div>
          </div>
          
          <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="apkname">APK名称<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input type="text" value="${appInfo.apkname }" onblur="checkAPKName(this)" id="apkname" name="apkname"  class="form-control col-md-7 col-xs-12">
              <span id="apkNameInfo"></span>
            </div>
          </div>
          
          <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="supportrom">支持ROM<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input type="text" value="${appInfo.supportrom }" id="supportrom" name="supportrom"  class="form-control col-md-7 col-xs-12">
            </div>
          </div>
          
          <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="interfacelanguage">界面语言<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input type="text" value="${appInfo.interfacelanguage }" id="interfacelanguage" name="interfacelanguage"  class="form-control col-md-7 col-xs-12">
            </div>
          </div>
          
          <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwaresize">软件大小<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input type="number" value="${appInfo.softwaresize }" id="softwaresize" name="softwaresize"  class="form-control col-md-7 col-xs-12">
            </div>
          </div>
          
          
          
          <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="downloads">下载次数<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input type="number" value="${appInfo.downloads }" id="downloads" name="downloads"  class="form-control col-md-7 col-xs-12">
            </div>
          </div>
          
          
          
          
          
           
           <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="flatformid">所属平台<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
            	<select name="flatformid" class="form-control col-md-7 col-xs-12">
            		<option value="">-- 请选择 --</option>
            		<c:forEach items="${flatformList }" var="flatform">
            			<option <c:if test="${appInfo.flatformid == flatform.valueid }">selected="selected"</c:if>  value="${flatform.valueid }">${flatform.valuename }</option>
            		</c:forEach>
            	</select>
            </div>
          </div>
           <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="categorylevel1">一级分类<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
            	<select onchange="findLevel2(this)" name="categorylevel1" class="form-control col-md-7 col-xs-12">
            		<option value="">-- 请选择 --</option>
            		<c:forEach items="${levelOneList }" var="levelOne">
            			<option <c:if test="${appInfo.categorylevel1 == levelOne.id }">selected="selected"</c:if>  value="${levelOne.id }">${levelOne.categoryname }</option>
            		</c:forEach>
            	</select>
            </div>
          </div>
           <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="categorylevel2">二级分类<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
            	<select onchange="findLevel3(this)" id="appLevelTwo" name="categorylevel2" class="form-control col-md-7 col-xs-12">
            		<option value="">-- 请选择 --</option>
            		<c:forEach items="${levelTwoList }" var="levelTwo">
            			<option <c:if test="${appInfo.categorylevel2 == levelTwo.id }">selected="selected"</c:if> value="${levelTwo.id }">${levelTwo.categoryname }</option>
            		</c:forEach>
            	</select>
            </div>
          </div>
           <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="categorylevel3">三级分类<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
            	<select id="appLevelThree" name="categorylevel3" class="form-control col-md-7 col-xs-12">
            		<option value="">-- 请选择 --</option>
            		<c:forEach items="${levelThreeList }" var="levelThree">
            			<option <c:if test="${appInfo.categorylevel3 == levelThree.id }">selected="selected"</c:if> value="${levelThree.id }">${levelThree.categoryname }</option>
            		</c:forEach>
            	</select>
            </div>
          </div>
          
          
          <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="status">APP状态<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
            	<input  readonly="readonly" value=<c:if test="${appInfo.status == 1 }">"待审核"</c:if><c:if test="${appInfo.status == 3 }">"审核未通过"</c:if> class="form-control col-md-7 col-xs-12"/>
            	<input name="status" value="1" type="hidden">
            </div>
          </div>
          
          
          <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">应用简介<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
            	<textarea rows="2" cols="2" name="appinfo" class="form-control col-md-7 col-xs-12">${appInfo.appinfo }</textarea>
            </div>
          </div>
          
          
          <div class="form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" >LOGO图片<span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
           		<img id="picImg" src="${appInfo.logopicpath}">
           		<a onclick="changeImg(this)">修改图片</a>
            	<input id="picFile" style="display:none" type="file" name="picFile" class="form-control col-md-7 col-xs-12"/>
            </div>
          </div>
          
          <div class="ln_solid"></div>
          <div class="form-group">
            <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
              <input type="submit" class="btn btn-primary" value="新增" />
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
 </div>
	
	
	
	


<%@include file="common/footer.jsp"%>